import request from '@/utils/request.js'

export const dataTypeListService = () => {
    return request.get('/dataTypes/list')
}

export const dataTypeAddService = (dataTypeData) => {
    return request.post('/dataTypes', dataTypeData)
}

export const dataTypeUpdateService = (dataTypeData) => {
    return request.put('/dataTypes', dataTypeData)
}

export const dataTypeDeleteService = (id) => {
    return request.delete('/dataTypes?id=' + id)
}